home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000…tember: Reference Library / Dev.CD Sep 00 RL Disk 1.toast / mac / What's New / • What was new 08⁄00 / Sample Code / Interapplication Comm / MoreOSL / MoreWindows / MoreWindows.h < prev   
Encoding:
C/C++ Source or Header  |  2000-06-23  |  2.1 KB  |  73 lines  |  [TEXT/CWIE]

  1. /*
  2.     File:        MoreWindows.h
  3.  
  4.     Contains:    
  5.  
  6.     Written by:    Pete Gontier
  7.  
  8.     Copyright:    Copyright (c) 1998 Apple Computer, Inc., All Rights Reserved.
  9.  
  10.                 You may incorporate this Apple sample source code into your program(s) without
  11.                 restriction. This Apple sample source code has been provided "AS IS" and the
  12.                 responsibility for its operation is yours. You are not permitted to redistribute
  13.                 this Apple sample source code as "Apple sample source code" after having made
  14.                 changes. If you're going to re-distribute the source, we require that you make
  15.                 it clear in the source that the code was descended from Apple sample source
  16.                 code, but that you've made changes.
  17.  
  18.     Change History (most recent first):
  19.  
  20.          <5>     20/3/00    Quinn   Added GetWindowList for non-Carbon clients.
  21.          <4>     1/25/99    PCG     TARGET_CARBON
  22.          <3>    11/11/98    PCG     fix headers
  23.          <2>    11/11/98    PCG     fix header
  24.          <1>    11/10/98    PCG     first big re-org at behest of Quinn
  25.  
  26.     Old Change History (most recent first):
  27.  
  28.          <4>    10/11/98    Quinn   Convert "MorePrefix.h" to "MoreSetup.h".
  29.          <3>      9/9/98    PCG     re-work import and export pragmas
  30.          <2>     7/24/98    PCG        coddle linker (C++, CFM-68K)
  31.          <1>     6/16/98    PCG     initial checkin
  32. */
  33.  
  34. #pragma once
  35.  
  36. #include "MoreSetup.h"
  37.  
  38. #include <MacWindows.h>
  39.  
  40. #ifdef __cplusplus
  41.     extern "C" {
  42. #endif
  43.  
  44. #pragma import on // for clients
  45. #pragma export on // for building a library
  46.  
  47. pascal OSStatus        MoveWindowToAlertPosition    (WindowRef);
  48.  
  49. pascal OSErr        MoreNewWindow                (    const Rect *            boundsRect,
  50.                                                     ConstStr255Param         title,
  51.                                                     short                     theProc,
  52.                                                     Boolean                 goAwayFlag,
  53.                                                     long                     refCon,
  54.                                                     WindowRef                *window                );
  55.  
  56. #if !TARGET_API_MAC_CARBON
  57.  
  58.     extern pascal WindowRef GetWindowList(void);
  59.  
  60. #endif
  61.  
  62. #pragma import reset // for clients
  63. #pragma export reset // for building a library
  64.  
  65. #ifdef __cplusplus
  66.     }
  67. #endif
  68.  
  69.  
  70. #if !TARGET_CARBON
  71. #    define GetWindowPortBounds(x,r)        do { *(r) = (x)->portRect; } while (false)
  72. #endif
  73.